package com.atguigu.spzx.product.mapper;

import com.atguigu.spzx.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductSkuMapper {
    List<ProductSku> findProductSkuBySaleNum();

    ProductSku getById(Long skuId);

    List<ProductSku> getProductSkuListByProductId(Long productId);

    void updateSale(@Param("skuId") Long skuId,@Param("num") Integer num);
}
